package com.example.springsecurity00.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yangdc
 * @date 2024/12/3
 */
@RestController
@RequestMapping
public class IndexController {
    @GetMapping
    public ResponseEntity<String> index() {
        return ResponseEntity.ok("Welcome SpringSecurity");
    }
    @GetMapping("/hello")
    public ResponseEntity<String> hello() {
        return ResponseEntity.ok("Hello SpringSecurity");
    }
}
